#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

bool canFirstMustWin(int n)
{
    // 1. 奇数必败
    if (n & 1)
        return false;
    // 2. 不是2^k的偶数必胜
    if (n & (n - 1))
        return true;
    // 3. 判断奇偶性
    int k = 0;
    while (n)
    {
        n >>= 1;
        k++;
    }

    return k % 2;
}

int main()
{
#ifdef LOCAL
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
#endif
    ios::sync_with_stdio(false), cin.tie(0);
    int t, n;
    cin >> t;
    while (t--)
    {
        cin >> n;
        if (canFirstMustWin(n))
            cout << "Alice" << endl;
        else
            cout << "Bob" << endl;
    }
    return 0;
}